package com.org.model;

/**
 * MemberAttributeOptionId entity. @author MyEclipse Persistence Tools
 */

public class MemberAttributeOptionId implements java.io.Serializable {

	// Fields

	private MemberAttribute memberAttribute;
	private String options;

	// Constructors

	/** default constructor */
	public MemberAttributeOptionId() {
	}

	/** minimal constructor */
	public MemberAttributeOptionId(MemberAttribute memberAttribute) {
		this.memberAttribute = memberAttribute;
	}

	/** full constructor */
	public MemberAttributeOptionId(MemberAttribute memberAttribute,
			String options) {
		this.memberAttribute = memberAttribute;
		this.options = options;
	}

	// Property accessors

	public MemberAttribute getMemberAttribute() {
		return this.memberAttribute;
	}

	public void setMemberAttribute(MemberAttribute memberAttribute) {
		this.memberAttribute = memberAttribute;
	}

	public String getOptions() {
		return this.options;
	}

	public void setOptions(String options) {
		this.options = options;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof MemberAttributeOptionId))
			return false;
		MemberAttributeOptionId castOther = (MemberAttributeOptionId) other;

		return ((this.getMemberAttribute() == castOther.getMemberAttribute()) || (this
				.getMemberAttribute() != null
				&& castOther.getMemberAttribute() != null && this
				.getMemberAttribute().equals(castOther.getMemberAttribute())))
				&& ((this.getOptions() == castOther.getOptions()) || (this
						.getOptions() != null
						&& castOther.getOptions() != null && this.getOptions()
						.equals(castOther.getOptions())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getMemberAttribute() == null ? 0 : this.getMemberAttribute()
						.hashCode());
		result = 37 * result
				+ (getOptions() == null ? 0 : this.getOptions().hashCode());
		return result;
	}

}